
import 'dart:async';

import 'package:flutter/services.dart';

/// 视频转码
class ConvertToMp4 {
  // 通道
  static const MethodChannel channel = const MethodChannel('cn.tataben/convert_to_mp4');

  // 转换成mp4
  static Future<String> convert(String path) async {
    return await channel.invokeMethod('convertMP4', path);
  }

}